]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
messageTray: don't steal focus when popping under the pointer
authorRui Matos <tiagomatos@gmail.com>
Wed, 2 Nov 2011 18:41:46 +0000 (18:41 +0000)
committerRui Matos <tiagomatos@gmail.com>
Fri, 4 Nov 2011 01:40:30 +0000 (01:40 +0000)
We must look for the actor under the pointer in the whole message tray and not
just in the notification. This will avoid us to capture focus when a
notification comes up with the pointer on the whole tray area.

https://bugzilla.gnome.org/show_bug.cgi?id=661358

js/ui/messageTray.js

index 44c1fe149749b0ad61eafcece6de35b422a90020..64c84aa4aea68b595809629cce82ac5f3d6bfe4c 100644 (file)
@@ -1860,7 +1860,7 @@ MessageTray.prototype = {
                 // automatically. Instead, the user is able to expand the notification by mousing away from it and then
                 // mousing back in. Because this is an expected action, we set the boolean flag that indicates that a longer
                 // timeout should be used before popping down the notification.
-                if (this._notificationBin.contains(actorAtShowNotificationPosition)) {
+                if (this.actor.contains(actorAtShowNotificationPosition)) {
                     this._useLongerTrayLeftTimeout = true;
                     return;
                 }